package com.blb.utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class IOUtils {

    public static void write(InputStream in, OutputStream out) throws IOException {
        byte[] data = new byte[10240];
        while (true){
            int len = in.read(data);
            if (len==-1){
                break;
            }
            out.write(data,0,len);
        }
        out.close();
        in.close();
    }



}
